﻿using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class TopUp
    {
        private Data.TopUp _TopUp;

        public TopUp()
        {
            _TopUp = new Data.TopUp();
        }

        public List<TopUpInfo> GetList(string value)
        {
            return _TopUp.GetList(value);
        }

        public int GetRowNumber(string value)
        {
            return _TopUp.GetRowNumber(value);
        }

        public List<TopUpInfo> GetList(string value, int currPage, int dataPerPage)
        {
            return _TopUp.GetList(value, currPage, dataPerPage);
        }

        public TopUpInfo Get(string CIF_NUMBER, string LOAN_NUMBER)
        {
            return _TopUp.Get(CIF_NUMBER.Trim(), LOAN_NUMBER.Trim());
        }

        public bool IsExist(string CIF_NUMBER, string LOAN_NUMBER)
        {
            return _TopUp.IsExist(CIF_NUMBER, LOAN_NUMBER);
        }

        public TopUpInfo GetApprovalByID(string CIF_NUMBER, string LOAN_NUMBER)
        {
            return _TopUp.GetApprovalByID(CIF_NUMBER.Trim(), LOAN_NUMBER.Trim());
        }

        public List<TopUpInfo> GetListApproval(string value, string UpdateBy)
        {
            return _TopUp.GetListApproval(value, UpdateBy);
        }

        public List<TopUpInfo> GetListApproval(string UpdateBy)
        {
            return _TopUp.GetListApproval(UpdateBy);
        }

        public List<TopUpInfo> GetListApproval(string UpdateBy, int currPage, int dataPerPage)
        {
            return _TopUp.GetListApproval( UpdateBy, currPage, dataPerPage);
        }

        public int GetListApprovalNumber(string UpdateBy)
        {
            return _TopUp.GetListApprovalNumber(UpdateBy);
        }

        public List<TopUpInfo> GetListAssignment(string NIP, string VALUE)
        {
            return _TopUp.GetListAssignment(NIP, VALUE);
        }

        public List<TopUpInfo> GetListAssignSOPaging(string NIP, string VALUE, int currPage, int dataPerPage)
        {
            return _TopUp.GetListAssignSOPaging(NIP, VALUE, currPage, dataPerPage);
        }

        public int GetRowNumberAssignSO(string NIP, string VALUE)
        {
            return _TopUp.GetRowNumberAssignSO(NIP, VALUE);
        }

        public int Save(TopUpInfo _TopUpInfo)
		{
            return _TopUp.Save(_TopUpInfo);
		}

        public int UpdateAssigned(string CIF_NUMBER, string LOAN_NUMBER, string ASSIGNED_TO, string UPDATE_BY)
        {
            return _TopUp.UpdateAssigned(CIF_NUMBER, LOAN_NUMBER, ASSIGNED_TO, UPDATE_BY);
        }

        public int Approve(string CIF_NUMBER, string LOAN_NUMBER, string ActType)
        {
            return _TopUp.Approve(CIF_NUMBER.Trim(), LOAN_NUMBER.Trim(), ActType);
        }

        public int Reject(string CIF_NUMBER, string LOAN_NUMBER)
        {
            return _TopUp.Reject(CIF_NUMBER.Trim(), LOAN_NUMBER.Trim());
        }

        public int Update(TopUpInfo TBL_TOPUP_TMP)
        {
            return _TopUp.Update(TBL_TOPUP_TMP);
        }
    }
}
